package lab4p2;

/**
 * <p>Title: CounterTester class - A simple tester for the class Counter.</p>
 * <p>Description: CS 235 Lab #4</p>
 * 
 * @author This is from the textbook - Nino & Hosch
 * @email anthony.varghese@uwrf.edu
 * @date August 8th 2013
 * @team none
 * 
 */
public class CounterTester {
	/**
	 * Data member: counter
	 */
	private Counter counter;

	/**
	 * Constructor - Create a new CounterTester object with a Counter object
	 * inside.
	 */
	public CounterTester() {
		counter = new Counter();
	}

	/**
	 * start method Run the tests.
	 */
	public void start() {
		System.out.println("Starting count:");
		System.out.println(counter.currentCount());
		counter.incrementCount();
		counter.incrementCount();
		counter.incrementCount();
		System.out.println("After 3 increments:");
		System.out.println(counter.currentCount());
		counter.reset();
		System.out.println("After reset:");
		System.out.println(counter.currentCount());
	}
}
